package com.sanjiahantang.youjiaclient.module.money.beans;

import com.google.gson.Gson;
import com.google.gson.reflect.TypeToken;
import com.sanjiahantang.youjiaclient.base.BaseBean;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

/**
 * Created by zy on 2018/3/22.
 */

public class BankCardBean {
    public static class CardList extends BaseBean{
        private String data;

        public List<Item> getData() {
            try{
                return new Gson().fromJson(data,new TypeToken<List<Item>>(){}.getType());
            }catch (Exception e){
                return new ArrayList<>();
            }
        }

        public void setData(String data) {
            this.data = data;
        }
    }

    public static class Card extends BaseBean{
        private String data;

        public Item getData() {
            try {
                return new Gson().fromJson(data,Item.class);
            }catch (Exception e){
                return null;
            }
        }

        public void setData(String data) {
            this.data = data;
        }
    }
    public static class Item implements Serializable{

        private String openingBankName;
        private String mbciId;
        private String bankCardNo;
        private String bankCardType;
        private String bankPhone;
        private String isDefault;
        private String phone;
        private String createTime;
        private String bankCardName;
        private String openingBankAddr;
        private String bankGenneralName;

        public String getOpeningBankName() {
            return openingBankName;
        }

        public void setOpeningBankName(String openingBankName) {
            this.openingBankName = openingBankName;
        }

        public String getMbciId() {
            return mbciId;
        }

        public void setMbciId(String mbciId) {
            this.mbciId = mbciId;
        }

        public String getBankCardNo() {
            return bankCardNo;
        }

        public void setBankCardNo(String bankCardNo) {
            this.bankCardNo = bankCardNo;
        }

        public String getBankCardType() {
            return bankCardType;
        }

        public void setBankCardType(String bankCardType) {
            this.bankCardType = bankCardType;
        }

        public String getBankPhone() {
            return bankPhone;
        }

        public void setBankPhone(String bankPhone) {
            this.bankPhone = bankPhone;
        }

        public String getIsDefault() {
            return isDefault;
        }

        public void setIsDefault(String isDefault) {
            this.isDefault = isDefault;
        }

        public String getPhone() {
            return phone;
        }

        public void setPhone(String phone) {
            this.phone = phone;
        }

        public String getCreateTime() {
            return createTime;
        }

        public void setCreateTime(String createTime) {
            this.createTime = createTime;
        }

        public String getBankCardName() {
            return bankCardName;
        }

        public void setBankCardName(String bankCardName) {
            this.bankCardName = bankCardName;
        }

        public String getOpeningBankAddr() {
            return openingBankAddr;
        }

        public void setOpeningBankAddr(String openingBankAddr) {
            this.openingBankAddr = openingBankAddr;
        }

        public String getBankGenneralName() {
            return bankGenneralName;
        }

        public void setBankGenneralName(String bankGenneralName) {
            this.bankGenneralName = bankGenneralName;
        }
    }
}
